package com.develrage.prinance.soapws;

import java.util.List;

import javax.xml.ws.Endpoint;
import javax.xml.ws.handler.Handler;

public class ServiceRunner
{

    /**
     * @param args
     */
    public static void main(String[] args)
    {
	String url = "http://prinance.develrage.com:8080/PrinanceWS";
	
	Endpoint e = Endpoint.create(new PrinanceWSImpl());
	
	List<Handler> handlerlist = e.getBinding().getHandlerChain();
	handlerlist.add(new SOAPLoggingHandler());
	e.getBinding().setHandlerChain(handlerlist);
	
	e.publish(url);

	System.out.println(String.format(
		"PrinanceWS webservice is listening on %s...", url));
    }

}
